﻿using aier.dataaccess.dapper;
using aier.dataaccess.model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace aier.business.logic
{
    public class ContentBll
    {
        public ContentDal contentDal { get; set; }

        /// <summary>
        /// 获取所有筛查内容
        /// 原程序 ScContentServiceImpl/getAll
        /// </summary>
        /// <returns></returns>
        public List<ContentView> GetAllContentInfo()
        {

            List<ContentView> contentViews = null;

            contentViews = contentDal.GetAllContentInfo();
            return contentViews;

        }
        /// <summary>
        /// 根据筛查内容ID获取筛查内容
        /// 查询条件：筛查内容ID
        /// 原程序 ScContentServiceImpl/getById
        /// </summary>
        /// <returns></returns>
        public ContentView GetContentInfoById(string ContentId)
        {

            ContentView contentView = null;

            contentView = contentDal.GetContentInfoById(ContentId);
            return contentView;

        }
    }
}
